<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文档导出测试</title>
    <link href="//unpkg.com/layui@2.10.0/dist/css/layui.css" rel="stylesheet">
    <script src="//unpkg.com/layui@2.10.0/dist/layui.js"></script>
    <script src="/js/sse-export.js"></script>
</head>
<body>
    <div style="padding: 20px; text-align: center;">
        <button type="button" class="layui-btn export-btn">
            <i class="layui-icon layui-icon-print"></i>导出excel
        </button>
    </div>

    <script>
        // 初始化导出插件
        new SseExport({
            processUrl: '/api/user/process',
            params: {
                fileName: '测试导出',
                sheetName: '数据'
            }
        });
    </script>
</body>
</html>